home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / DINKDEMO / DC_SCRIB / DSCRIBBL.H2 < prev    next >
Text File  |  1992-07-08  |  1KB  |  57 lines

  1. /*
  2.     File:        DScribbleDoc.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    ⌐ 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration of the DScribbleDoc
  12. // sub-class to DDocument
  13. #ifndef __DSCRIBBLEDOC__
  14. #define __DSCRIBBLEDOC__
  15.  
  16. //class DDocument;
  17. #include "DDocument.h"
  18. #include "DScribbleWind.h"
  19.  
  20.  
  21. class DScribbleDoc : public DDocument
  22. {
  23. public:
  24.     
  25.     PicHandle        fPict;
  26.     Handle            fPictHeader;
  27.     
  28.     ~DScribbleDoc();
  29.         
  30.     virtual     DDocument* Init( Boolean OpenFromFile);
  31.     
  32.     virtual void     AEInitDoc(FSSpec *theFSS);
  33.  
  34.     virtual void HandleMenuChoice(short menuID, short menuItem);            
  35.     virtual void SetUpMenues(void);
  36.     virtual DWindow*     MakeWindow(Boolean hasColorWindows);
  37.  
  38.     virtual OSErr         ReadData(short refNum, long *size);
  39.     virtual OSErr         WriteData(short refNum);
  40.  
  41. }; //end of DScribbleDoc class declaration
  42.  
  43.  
  44. #define    kHAdjust    50
  45. #define    kWAdjust    40
  46.  
  47. #define rPenMenu    131
  48. #define i1X1    1
  49. #define i2X2    2
  50. #define i3X3    3
  51. #define iBlack    5
  52. #define iGray    6
  53. #define iWhite    7
  54. #define    kEveryItem    0
  55.  
  56. #endif __DSCRIBBLEDOC__
  57.